package com.wangsd.common.enums;

/**
 * 响应码定义类
 * author：qc
 * created_time:2019-8-29 13:56
 */
public enum ResultCode {
    RESULT_SUCCESS(200, "操作成功"),

    /*关于用户*/
    ACCOUNT_PASSWORD_ERROR(50000, "账号密码错误"),
    WEIXIN_NO_AUTH(50001, "未授权"),
    LOGIN_EXPIRE(50002, "登录过期，请重新登录"),
    NO_LOGIN(50003, "用户未登录"),
    NO_USER(50004, "账户不存在"),
    NO_ASSUPER_AUTH(50005, "超级管理员不能操作！"),

    /*参数*/
    PRARM_NOT_NULL(8000, "参数不能为空"),

    /*业务逻辑*/
    RESULT_FAIL(9000, "操作失败"),
    NAME_REPEAT(9001, "名称重复"),
    DEVICE_NO_REPEAT(9002, "设备编号重复"),

    MINI_APP_PAY_SIGN_PRARM(7003,"支付验参失败"),

    /*服务商管理*/
    USERING_NOT_DELETE(9100, "该服务商下有商圈，不允许删除");

    private Integer code;

    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
